home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2000 November / cd joystick no120 novembre 2000 cd 1.iso / data / demos / gunlok / data1.cab / Program_Executable_Files / scripts / centipede.gsh < prev    next >
Text File  |  2000-08-22  |  2KB  |  89 lines

  1. // defines Centipede
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_CENTIPEDE_GSH
  8. #define INCLUDED_CENTIPEDE_GSH
  9.  
  10. ////////////////////////////////////////////////////////////////////////////////////
  11.  
  12. #include "defaults.gsh"
  13. #include "lasers.gsh"
  14.  
  15. hierarchy Hcy_Centi_Body
  16. {
  17.     file "units\centi_body.RIF"
  18.     name "centi_body"
  19.     hotspot "Rforeleg"
  20. }
  21.  
  22. hierarchy Hcy_Centi_Head
  23. {
  24.     file "units\centi_head.RIF"
  25.     name "centi_head"
  26.     hotspot "Dum Flash"
  27. }
  28.  
  29. character Chr_Centi_Body : Chr_DefaultBaddie
  30. {
  31.     turning speed    0.2    // this is in revolutions per second
  32.     walking speed    1.0    // this is in animation cycles per second
  33.     weapon        enemy laser // needed to stop certain errors
  34.     strength    10    // initial strength points
  35.     aim        2    // how many degrees off target he can be at most
  36.     sight angle    70    // in degrees
  37.     sight range    8    // in metres
  38.     hearing range    20    // in metres
  39.     aggression    0.9    // from 0 to 1
  40.     gun yaw angle    0
  41.     elevation angle 0
  42. }
  43.  
  44. character Chr_Centi_Head : Chr_DefaultBaddie
  45. {
  46.     turning speed    0.2    // this is in revolutions per second
  47.     walking speed    1.0    // this is in animation cycles per second
  48.     weapon        maxim laser
  49.     strength    40    // initial strength points
  50.     aim        1    // how many degrees off target he can be at most
  51.     sight angle    70    // in degrees
  52.     sight range    8    // in metres
  53.     hearing range    20    // in metres
  54.     aggression    0.9    // from 0 to 1
  55.     gun yaw angle    10    // in degrees
  56.     radius        0.3
  57. }
  58.  
  59. role Rol_Centi_Body : Rol_DefaultRobot
  60. {
  61.     shape        Hcy_Centi_Body
  62.  
  63.     character    Chr_Centi_Body
  64.  
  65.     identifier    "centibody"
  66.  
  67.     ai        centibody
  68.  
  69.     destructibility    Des_Explode
  70. }
  71.  
  72. role Rol_Centi_Head : Rol_DefaultRobot
  73. {
  74.     shape        Hcy_Centi_Head
  75.  
  76.     character    Chr_Centi_Head
  77.  
  78.     identifier    "centipede"
  79.  
  80.     ai        centipede        // centipede AI core
  81.  
  82.     destructibility    Des_Explode
  83. }
  84.  
  85. ////////////////////////////////////////////////////////////////////////////////////
  86.  
  87. // end wrapper - for preventing multiple or recursive inclusions
  88. #endif // !INCLUDED_CENTIPEDE_GSH
  89.